Azure VM Command Execution Using Third-Party Extensions – Sa... - #332
Open
carlospolop wants to merge 1 commit into
Open
Azure VM Command Execution Using Third-Party Extensions – Sa...#332carlospolop wants to merge 1 commit into
carlospolop wants to merge 1 commit into
Conversation
Collaborator
Author
🔗 Additional ContextOriginal Blog Post: https://netspi.com/blog/technical-blog/cloud-pentesting/azure-vm-command-execution-using-third-party-extensions-part-2 Content Categories: Based on the analysis, this content was categorized under "Pentesting Cloud > Azure Pentesting > Az - Privilege Escalation > Az - Virtual Machines & Network Privesc; cross-reference from Az - Post Exploitation > Az - VMs & Network Post Exploitation under a new subsection such as "VM Extension Write to Guest RCE via Rogue Salt Master"". Repository Maintenance:
Review Notes:
Bot Version: HackTricks News Bot v1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🤖 Automated Content Update
This PR was automatically generated by the HackTricks News Bot based on a technical blog post.
📝 Source Information
🎯 Content Summary
Attack overview
The post demonstrates how Azure VM extension-management permissions can be converted into arbitrary operating-system command execution by abusing the legitimate third-party Salt Minion extension. This is not associated with a CVE. An attacker controlling an Azure principal with
Microsoft.Compute/virtualMachines/extensions/writecan install the extension on a Linux or Windows VM, configure it to connect to an attacker-controlled Salt Master, accept the VM's...🔧 Technical Details
Converting Azure extension-write access into guest command execution: If an Azure principal can perform
Microsoft.Compute/virtualMachines/extensions/write, it may be able to cross from control-plane access into the operating-system guest by installing a legitimate management extension configured with attacker-controlled infrastructure. For Salt, deployturtletraction.oss/salt-minion.linuxorsalt-minion.windowsand setmaster_addressto a rogue Salt Master. The VM agent installs the extension, after which the minion initiates outbound ZeroMQ connections over TCP4505/4506. This avoids SSH, RDP, guest credentials, and inbound connectivity while making the activity resemble legitimate VM administration.Taking control of a Salt Minion through a rogue master: A newly connected minion submits its public key and remains untrusted until the master accepts it with
salt-key -a <...🤖 Agent ActionsDone — I updated:
src/pentesting-cloud/azure-security/az-privilege-escalation/az-virtual-machines-and-network-privesc.mdAdded a new subsection under
Microsoft.Compute/virtualMachines/extensions/writecovering:az vm extension setexamplessalt-key/salt ... cmd.runusageAlso added a
## Referencessection at the end with:I kept the change in a single file to avoid duplication.
This PR was automatically created by the HackTricks Feed Bot. Please review the changes carefully before merging.